package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductInfo;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.GroupMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GroupServiceImpl implements GroupService {

    @Autowired(required = false)
    private GroupMapper groupMapper;


    @Override
    public ProductInfo GroupfindAllById(Integer productId) {
        return groupMapper.GroupfindAllById(productId);
    }

    @Override
    public List<ProductInfo> GroupfindAllList(ProductInfo productInfo) {
        return groupMapper.GroupfindAllList(productInfo);
    }

    @Override
    public ProductInfo selectGroupInfoById(Integer productId) {
        return groupMapper.selectGroupInfoById(productId);
    }

    @Override
    public List<ProductInfo> selectGroupInfoList(ProductInfo productInfo) {
        return groupMapper.selectGroupInfoList(productInfo);
    }

    @Override
    public int insertGroupInfo(ProductInfo productInfo) {
        return groupMapper.insertGroupInfo(productInfo);
    }

    @Override
    public int updateGroupInfo(ProductInfo productInfo) {
        return groupMapper.updateGroupInfo(productInfo);
    }

    @Override
    public int deleteGroupInfoById(Integer productId) {
        return groupMapper.deleteGroupInfoById(productId);
    }

    @Override
    public int deleteGroupByIds(Integer[] productIds) {
        return groupMapper.deleteGroupByIds(productIds);
    }

    @Override
    public List<ProductInfo> GroupFindAddress(String address) {
        return groupMapper.GroupFindAddress(address);
    }
}
